<?php
include "../lib/DAL/DmBacHoc.php";

class DmBacHocBLL{
    function __construct(){
    }
    
    function __destruct(){
    }

    public function SetbachocBLL($row)
    {
        $bachoc= new DmBacHoc();
        $bachoc->setBachoc($row['madm_bh'],$row['ten_bh']);
        return $bachoc;   
    }
    
    public function GetlistBH(){
        $ex=mysql_query("SELECT * FROM dm_bachoc");
        if($ex){
            while($row=mysql_fetch_array($ex)){
                $ds[]=$this->SetbachocBLL($row);
            }
        }
     return $ds;
    }
}
?>